package com.skyline.myspider.core;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class LoggerUtil {
	public static  Logger getLogger(Object object, String logProperPath) {
		PropertyConfigurator.configure(object.getClass().getResource(logProperPath));
		Logger logger = Logger.getLogger(object.getClass());
		return logger;
	}
}
